package com.youzu.information.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

@Getter
@Setter
@ToString(callSuper=true, includeFieldNames=true)
public class LogDO {
	private Long id;

	private Long userId;

	private String username;

	private String operation;

	private Integer time;

	private String method;

	private String params;

	private String ip;
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date gmtCreate;

//	@Override
//	public String toString() {
//		return "LogDO{" +
//				"id=" + id +
//				", userId=" + userId +
//				", username='" + username + '\'' +
//				", operation='" + operation + '\'' +
//				", time=" + time +
//				", method='" + method + '\'' +
//				", params='" + params + '\'' +
//				", ip='" + ip + '\'' +
//				", gmtCreate=" + gmtCreate +
//				'}';
//	}
}